//
//  NotificationsTableViewCell.m
//  EZ Tracker
//
//  Created by FENGYL on 2016/12/31.
//  Copyright © 2016年 FENGYL. All rights reserved.
//

#import "NotificationsTableViewCell.h"

@interface NotificationsTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *serialNumberLabel;

@end

@implementation NotificationsTableViewCell

-(void)setDate:(NSString *)date type:(NSString *)type serialNumber:(NSString *)serialNumber{
    
    NSDictionary * dict = [[NSDictionary alloc]initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:ALARM_TYPE ofType:@"plist"]];
    
    NSString * dateString = [NSString stringWithFormat:@"Date:%@",date];
    NSString * typeString = [NSString stringWithFormat:@"Type:%@",[dict valueForKey:[NSString stringWithFormat:@"%@",type]]];
    NSString * serialNumberString = [NSString stringWithFormat:@"SerialNumber:%@",serialNumber];
    
    
    [self.dateLabel setText:dateString];
    [self.typeLabel setText:typeString];
    [self.serialNumberLabel setText:serialNumberString];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
